import Vue from 'vue'
import VueRouter from 'vue-router'

//路由板块 
import module from "./module";

Vue.use(VueRouter)

  const routes = [
   ...module,
   {
       path: '*',
       redirect: '/'
   }
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
